package com.yunxin.core.infra.persistence.mapper.channel;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.yunxin.core.infra.persistence.entity.channel.ChannelTypeDO;
import com.yunxin.core.infra.persistence.entity.channel.query.condition.ChannelTypePageCondition;
import com.yunxin.core.infra.persistence.entity.channel.query.result.ChannelTypeListResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zero°
 * @since 2023-05-25
 */
@DS("core")
@Mapper
public interface ChannelTypeExtendMapper extends ChannelTypeMapper {

    /**
     * 获取渠道类型下拉列表
     * @return List<ChannelTypeListResult>
     */
    List<ChannelTypeListResult> listChannelType();

    /**
     * 分页查询渠道类型列表总条数
     * @param condition condition
     * @return int
     */
    long countChannelTypePageQuery(ChannelTypePageCondition condition);

    /**
     * 分页查询渠道类型列表
     * @param condition condition
     * @return List<ChannelType>
     */
    List<ChannelTypeDO> channelTypePageQuery(ChannelTypePageCondition condition);
}
